package com.orangelife.mobile.individual.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.common.sp.UserSp;
import com.curry.android.util.IntentHelper;
import com.curry.orangelife.mobile.R;
import com.orangelife.mobile.app.application.CurryApplication;
import com.orangelife.mobile.common.activity.OrangeLifeBaseActivity;

import butterknife.Bind;
import butterknife.ButterKnife;

/**
 * 修改手机号之前的提示界面
 * <p/>
 * Created by luxiaojuan
 * on 2015/12/4.
 */
public class ChangePhoneNum1Activity extends OrangeLifeBaseActivity {

    @Bind(R.id.tv_title)
    TextView tvTitle;
    @Bind(R.id.btnBindPhone)
    Button btnBindPhone;
    @Bind(R.id.tvPhone)
    TextView tvPhone;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        CurryApplication.getInstance().addActivity(this);
        setContentView(R.layout.activity_change_phonenum1);
        ButterKnife.bind(this);

        initView();
        findView();

    }

    private void initView() {
        tvTitle.setText("修改绑定手机号");
        tvPhone.setText(UserSp.getRegPhone());

    }

    private void findView() {
        btnBindPhone.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                IntentHelper.getInstances().getIntent(ChangePhoneNum1Activity.this, ChangePhoneNumActivity.class);
                finish();
            }
        });
    }
}
